package com.memory.monitor.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 营销情况
 * @TableName market
 */
@Data
@TableName(value ="market")
public class Market implements Serializable {
    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 产品类型
     */
    private String productType;

    /**
     * 销售日期
     */
    private Date salesDate;

    /**
     * 销售渠道
     */
    private String salesChannel;

    /**
     * 销售量
     */
    private Integer salesNumber;

    /**
     * 销售额
     */
    private Integer saleroom;

    /**
     * 省份
     */
    private String province;

    /**
     *  市
     */
    private String city;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}